package lab02.test07;

public class Student extends Person {
    private String number;
    private String school;

    Student(){}

    Student(String name,int age,String ID,
            String number,String school){
        super(name, age, ID);
        this.number = number;
        this.school = school;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getNumber() {
        return number;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    @Override
    public String toString() {
        return super.toString()+"学号："+this.number+"\n"
                +"学校："+this.school+"\n";
    }
}
